package com.xyp.cityipgen.dao;

import com.xyp.cityipgen.model.CityIP;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;

/**
 * @author xyp
 * @date 2019-08-07 17:34
 * @description
 * @version: 1.0
 */
@Mapper
public interface IpDataDao {
    @Select("select * from ip_data_utf8 where address like '%${cityName}%'")
    List<CityIP> getListByWhere(@Param(value = "cityName") String cityName);
}
